package com.manlost.biz.tag.query;

import org.apache.commons.lang.StringUtils;

import com.manlost.biz.common.query.BaseQuery;

/**
 * 类CountBabyTagAccountRelationQuery.java的实现描述：TODO 类实现描述
 * 
 * @author xiaochuan.luxc 2012-4-9 下午10:40:52
 */
public class CountBabyTagAccountRelationQuery extends BaseQuery {

    private static final long serialVersionUID = -5820648560523063112L;
    private Long              tagId;
    private String            babyType;

    public CountBabyTagAccountRelationQuery(Long tagId) {
        this.tagId = tagId;
    }

    public CountBabyTagAccountRelationQuery(Long tagId, String babyType) {
        this.tagId = tagId;
        this.babyType = babyType;
    }

    public boolean validate() {
        if (tagId == null && StringUtils.isBlank(babyType)) {
            return false;
        }
        return true;
    }

    /**
     * @return the tagId
     */
    public Long getTagId() {
        return tagId;
    }

    /**
     * @param tagId the tagId to set
     */
    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    /**
     * @return the babyType
     */
    public String getBabyType() {
        return babyType;
    }

    /**
     * @param babyType the babyType to set
     */
    public void setBabyType(String babyType) {
        this.babyType = babyType;
    }

}
